Get information about the API.
After initialising the API in either offline or online mode (see this page), you can run any of the below commands to get information about the API.
This returns the signer object of the current connected account.
All API utils also work in offline mode.
- Gateway
- Version
- Options
- All
api.gateway
(async () => {
await api.init();
console.log(api.gateway);
})();
api.version
(async () => {
await api.init();
console.log(api.gateway);
})();
api.options
(async () => {
await api.init();
console.log(api.options);
})();
api
(async () => {
await api.init();
console.log(api);
})();